<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://localhost:8080/Website/" />
<title>UseCase3RegisterAccountScenario2TestCase3</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">UseCase3RegisterAccountScenario2TestCase3</td></tr>
</thead><tbody>
<!--Created by Steven Chow-->
<!--Use Case: Register Account-->
<!--Scenario 2: UnSuccessful Registration-->
<!--Test Case 1: Invalid Phone Number-->
<!---->
<!--Go to Website-->
<tr>
	<td>open</td>
	<td>/Website/</td>
	<td></td>
</tr>
<!---->
<!--Pre-Setup Expected Result: On page load, check that a login button is present-->
<tr>
	<td>assertElementPresent</td>
	<td>class=tile double bg-color-blue</td>
	<td></td>
</tr>
<!---->
<!--STEP 1: Click on "New Customer Button"-->
<tr>
	<td>clickAndWait</td>
	<td>//a[2]/div/div[2]</td>
	<td></td>
</tr>
<!---->
<!--EXPECTED RESULTS 1: Check if the Customer Registration page will load-->
<tr>
	<td>assertTitle</td>
	<td>Register Customer</td>
	<td></td>
</tr>
<!---->
<!--STEP 2: Enter valid username, password, first, lastname, email, and invalid phone-->
<tr>
	<td>type</td>
	<td>name=username</td>
	<td>GayBear</td>
</tr>
<tr>
	<td>type</td>
	<td>name=password</td>
	<td>pass</td>
</tr>
<tr>
	<td>type</td>
	<td>name=firstname</td>
	<td>Blue</td>
</tr>
<tr>
	<td>type</td>
	<td>name=lastname</td>
	<td>Bear</td>
</tr>
<tr>
	<td>type</td>
	<td>name=email</td>
	<td>BlueBear@hotmail.com</td>
</tr>
<tr>
	<td>type</td>
	<td>name=phone</td>
	<td>dfdfdfdfdfdfdf</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<!---->
<!--EXPECTED RESULTS 2: Check for an Error Message-->
<tr>
	<td>assertTextPresent</td>
	<td>invalid phone number</td>
	<td></td>
</tr>
<!--Go Back to Main Page-->
<tr>
	<td>clickAndWait</td>
	<td>//a[contains(@href, 'index.html')]</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>PlaneSimple</td>
	<td></td>
</tr>
<!---->
<!--Step 3: Input another invalid Phone Number. This time a super long integer-->
<tr>
	<td>clickAndWait</td>
	<td>//a[2]/div/div[2]</td>
	<td></td>
</tr>
<!---->
<!--EXPECTED RESULTS 3: Check if the Customer Registration page will load-->
<tr>
	<td>assertTitle</td>
	<td>Register Customer</td>
	<td></td>
</tr>
<!---->
<!--Enter valid username, password, first, lastname, email, and invalid phone-->
<tr>
	<td>type</td>
	<td>name=username</td>
	<td>BlueBear</td>
</tr>
<tr>
	<td>type</td>
	<td>name=password</td>
	<td>pass</td>
</tr>
<tr>
	<td>type</td>
	<td>name=firstname</td>
	<td>Blue</td>
</tr>
<tr>
	<td>type</td>
	<td>name=lastname</td>
	<td>Bear</td>
</tr>
<tr>
	<td>type</td>
	<td>name=email</td>
	<td>BlueBear@hotmail.com</td>
</tr>
<tr>
	<td>type</td>
	<td>name=phone</td>
	<td>333333333333333333333333333333333333333333333333333333333333454</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=input[type=&quot;submit&quot;]</td>
	<td></td>
</tr>
<!--EXPECTED RESULTS 4: Check for an Error Message-->
<tr>
	<td>assertTextPresent</td>
	<td>invalid phone number</td>
	<td></td>
</tr>
<!--Go Back to Main Page-->
<tr>
	<td>clickAndWait</td>
	<td>//a[contains(@href, 'index.html')]</td>
	<td></td>
</tr>
<tr>
	<td>assertTitle</td>
	<td>PlaneSimple</td>
	<td></td>
</tr>
<!---->
<!---->
</tbody></table>
</body>
</html>
